﻿<UserControl x:Class="PatientTestUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
             xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
    <Grid Background="{StaticResource WindowBackground}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Text="Date:" Style="{StaticResource TextBlockStyle}"/>
        <DatePicker Grid.Column="1" Height="28" Name="ExamDatePicker" Width="160" HorizontalAlignment="Left"/>
        <TextBlock Text="Time:" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:DateTimeUpDown Width="100" Grid.Column="3" Name="ExamTime" Format="ShortTime" />
        <Grid Grid.Row="3" Grid.ColumnSpan="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Pulse" Style="{StaticResource TextBlockStyle}"/>
            <TextBlock Grid.Row="1" Margin="2">
                <TextBox Width="50" Name="PulseTextBox"/>
                <Run Text="/min"/>
            </TextBlock>
            <TextBlock Text="Temperature" Style="{StaticResource TextBlockStyle}" Grid.Column="1"/>
            <TextBlock Grid.Row="1" Margin="2" Grid.Column="1">
                <TextBox Width="50" Name="TemperatureTextBox"/>
                <Run Text="F"/>
            </TextBlock>
            <TextBlock Text="Respiration" Style="{StaticResource TextBlockStyle}" Grid.Column="2"/>
            <TextBlock Grid.Row="1" Margin="2" Grid.Column="2">
                <TextBox Width="50" Name="RespirationTextBox"/>
                <Run Text="/min"/>
            </TextBlock>
            <TextBlock Text="Blood Pressure" Style="{StaticResource TextBlockStyle}" Grid.Row="2"/>
            <TextBlock Grid.Row="3" Margin="2">
                <TextBox Width="50" Name="UpBpTextBox"/>
                <Run Text="/"/>
                <TextBox Width="50" Name="DownBpTextBox"/>
            </TextBlock>
            <TextBlock Text="Heart Rate" Style="{StaticResource TextBlockStyle}" Grid.Column="1" Grid.Row="2"/>
            <TextBlock Grid.Row="3" Margin="2" Grid.Column="1">
                <TextBox Width="50" Name="HeartRateTextBox"/>
                <Run Text="/min"/>
            </TextBlock>
            <TextBlock Text="Heart Beat" Style="{StaticResource TextBlockStyle}" Grid.Column="2" Grid.Row="2"/>
            <ComboBox Grid.Row="3" Grid.Column="2" Margin="2" Name="HeartBeatComboBox">
                <ComboBoxItem Content="Regular" />
                <ComboBoxItem Content="Irregular" />
            </ComboBox>
        </Grid>
        <TextBlock Text="Health Status:" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
        <ComboBox Grid.Row="4" Grid.Column="1" Margin="2" Name="HealthStatusComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
        <TextBlock Text="Head Circumference:" Grid.Row="4" Style="{StaticResource TextBlockStyle}" Grid.Column="2"/>
        <extToolkit:WatermarkTextBox Grid.Column="3" Watermark="Head Circumference" Grid.Row="4" Name="HeadCircumferenceTextBox" Margin="2"/>
        <TextBlock Text="Height:" Grid.Row="5" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Height" Grid.Row="5" Name="HeightTextBox" Margin="2"/>
        <TextBlock Text="Weight:" Grid.Row="5" Style="{StaticResource TextBlockStyle}" Grid.Column="2"/>
        <extToolkit:WatermarkTextBox Grid.Column="3" Watermark="Weight" Grid.Row="5" Name="WeightTextBox" Margin="2"/>
        <TextBlock Text="Remarks:" Grid.Row="6" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Grid.ColumnSpan="3" Watermark="Remarks" Height="30" Grid.Row="6" Name="RemarksTextBox" Margin="2"  AcceptsReturn="True" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto"/>
        <TextBlock Text="Problem Findings:" Grid.Row="7" Grid.ColumnSpan="2" Style="{StaticResource TextBlockStyle}"/>
        <my:DataGrid AutoGenerateColumns="False" Margin="5" Height="100" VerticalAlignment="Top" IsReadOnly="True" Grid.Row="8" Name="FindingsDataGrid" Grid.ColumnSpan="4">
            <my:DataGrid.Columns>
                <my:DataGridTextColumn Header="Category" Width="80" Binding="{Binding Relationship}" />
                <my:DataGridTextColumn Header="Problems Findings" Width="250" Binding="{Binding GuardianName}"/>
            </my:DataGrid.Columns>
        </my:DataGrid>
        <my:DataGrid AutoGenerateColumns="False" Margin="5" Height="80" VerticalAlignment="Top" IsReadOnly="True" Grid.Row="9" Name="GuardianDataGrid" Grid.ColumnSpan="4">
            <my:DataGrid.Columns>
               <my:DataGridTextColumn Header="Date" Binding="{Binding Relationship}" />
                <my:DataGridTextColumn Header="Consulting Doc" Binding="{Binding ContactNo}" />
                <my:DataGridTextColumn Header="Pulse" Binding="{Binding GuardianName}"/>
                <my:DataGridTextColumn Header="Blood Pressure" Binding="{Binding age}" />
                <my:DataGridTextColumn Header="Weight" Binding="{Binding healthStatusName}" />
                <my:DataGridTextColumn Header="Remarks" Binding="{Binding Complaints}"/>
            </my:DataGrid.Columns>
        </my:DataGrid>
    </Grid>
</UserControl>
